home *** CD-ROM | disk | FTP | other *** search
- * *********************************************************
- * *
- * * 06/20/94 CONTROL.SPR 10:48:22
- * *
- * *********************************************************
- * *
- * * Author's Name
- * *
- * * Copyright (c) 1994 Company Name
- * * Address
- * * City, Zip
- * *
- * * Description:
- * * This program was automatically generated by GENSCRN.
- * *
- * *********************************************************
-
-
- #REGION 0
- REGIONAL m.currarea, m.talkstat, m.compstat
-
- IF SET("TALK") = "ON"
- SET TALK OFF
- m.talkstat = "ON"
- ELSE
- m.talkstat = "OFF"
- ENDIF
- m.compstat = SET("COMPATIBLE")
- SET COMPATIBLE FOXPLUS
-
- m.rborder = SET("READBORDER")
- SET READBORDER ON
-
- m.currarea = SELECT()
-
-
- * *********************************************************
- * *
- * * Windows Window definitions
- * *
- * *********************************************************
- *
-
- IF NOT WEXIST("controls") ;
- OR UPPER(WTITLE("CONTROLS")) == "CONTROLS.PJX" ;
- OR UPPER(WTITLE("CONTROLS")) == "CONTROLS.SCX" ;
- OR UPPER(WTITLE("CONTROLS")) == "CONTROLS.MNX" ;
- OR UPPER(WTITLE("CONTROLS")) == "CONTROLS.PRG" ;
- OR UPPER(WTITLE("CONTROLS")) == "CONTROLS.FRX" ;
- OR UPPER(WTITLE("CONTROLS")) == "CONTROLS.QPR"
- DEFINE WINDOW controls ;
- AT 5.417, 66.750 ;
- SIZE 17.385,8.333 ;
- FONT "MS Sans Serif", 8 ;
- STYLE "B" ;
- FLOAT ;
- NOCLOSE ;
- NOMINIMIZE ;
- HALFHEIGHT ;
- COLOR RGB(,,,192,192,192)
- ENDIF
-
-
- * *********************************************************
- * *
- * * CONTROL/Windows Setup Code - SECTION 2
- * *
- * *********************************************************
- *
-
- #REGION 1
- *#SECTION 1
- *
- * Screen description:
- * This screen is a UTILITY screen. It may be combined with any other
- * screens. All variables used by this screen have been declared REGIONAL to
- * encapsulate them (i.e., to avoid conflict with variables from other
- * screens). All variables also have 'm.' prefix to avoid conflict with
- * 'unknown' database field names.
- *
- * Points of interest:
- * This screen has been designed to dim its buttons when they
- * are not appropritate (i.e., when at TOP dim < Top >, etc.)
- * Since TOP and BOTTOM operate within a given scope, if you wish to use this
- * screen in presence of any FILTERING (scope altering) conditions make sure
- * the control utility screen follows the other screen when you combine them.
- *
-
- *#SECTION 2
- *REGIONAL m.choice, m.toprec, m.bottomrec, m.saverecno
- *PRIVATE m.quitting
- *m.quitting = .F.
- *m.choice = 6
-
- *IF EOF()
- * GO BOTTOM
- *ENDIF
-
- *m.saverecno = RECNO()
- *GO TOP
- *m.toprec = RECNO()
- *GO BOTTOM
- *m.bottomrec = RECNO()
- *GO m.saverecno
-
-
-
- * *********************************************************
- * *
- * * CONTROL/Windows Screen Layout
- * *
- * *********************************************************
- *
-
- #REGION 1
- IF WVISIBLE("controls")
- ACTIVATE WINDOW controls SAME
- ELSE
- ACTIVATE WINDOW controls NOSHOW
- ENDIF
- @ 0.615,1.167 GET m.choice ;
- PICTURE "@*BVN " + ;
- (LOCFILE("sample\organize\bmps\top.bmp","BMP|ICO|PCT|ICN","Where is top?")) + ";" + ;
- (LOCFILE("sample\organize\bmps\prior.bmp","BMP|ICO|PCT|ICN","Where is prior?")) + ";" + ;
- (LOCFILE("sample\organize\bmps\next.bmp","BMP|ICO|PCT|ICN","Where is next?")) + ";" + ;
- (LOCFILE("sample\organize\bmps\bottom.bmp","BMP|ICO|PCT|ICN","Where is bottom?")) ;
- SIZE 2.462,5.833,0.000 ;
- DEFAULT 1 ;
- FONT "MS Sans Serif", 8 ;
- STYLE "B" ;
- VALID _qr10n5w4h()
- @ 11.154,1.167 GET m.lchoice ;
- PICTURE "@*BHN " + ;
- (LOCFILE("sample\organize\bmps\locate.bmp","BMP|ICO|PCT|ICN","Where is locate?")) ;
- SIZE 2.462,5.833,0.667 ;
- DEFAULT 1 ;
- FONT "MS Sans Serif", 8 ;
- STYLE "B" ;
- VALID _qr10n5wgi()
- @ 14.231,1.167 GET m.echoice ;
- PICTURE "@*HN Exit" ;
- SIZE 2.462,5.833,0.667 ;
- DEFAULT 1 ;
- FONT "MS Sans Serif", 8 ;
- STYLE "B" ;
- VALID _qr10n5wki()
-
- IF NOT WVISIBLE("controls")
- ACTIVATE WINDOW controls
- ENDIF
-
- READ CYCLE
-
- RELEASE WINDOW controls
- SELECT (m.currarea)
-
-
- #REGION 0
-
- SET READBORDER &rborder
-
- IF m.talkstat = "ON"
- SET TALK ON
- ENDIF
- IF m.compstat = "ON"
- SET COMPATIBLE ON
- ENDIF
-
-
- * *********************************************************
- * *
- * * _QR10N5W4H m.choice VALID
- * *
- * * Function Origin:
- * *
- * * From Platform: Windows
- * * From Screen: CONTROL, Record Number: 2
- * * Variable: m.choice
- * * Called By: VALID Clause
- * * Object Type: Push Button
- * * Snippet Number: 1
- * *
- * *********************************************************
- *
- FUNCTION _qr10n5w4h && m.choice VALID
- #REGION 1
- DO CASE
- CASE m.choice = 1
- GO TOP
- SHOW GET m.choice, 3 ENABLE
- SHOW GET m.choice, 1 DISABLE
- SHOW GET m.choice, 2 DISABLE
- SHOW GET m.choice, 4 ENABLE
- CASE m.choice = 2
- SKIP -1
- IF BOF() OR RECNO() = m.toprec
- GO TOP
- SHOW GET m.choice, 2 DISABLE
- SHOW GET m.choice, 1 DISABLE
- ELSE
- IF RECNO() < m.bottomrec
- SHOW GET m.choice, 3 ENABLE
- SHOW GET m.choice, 4 ENABLE
- ENDIF
- ENDIF
- CASE m.choice = 3
- SKIP 1
- IF EOF() OR RECNO() = m.bottomrec
- GO BOTTOM
- SHOW GET m.choice, 3 DISABLE
- SHOW GET m.choice, 4 DISABLE
- ELSE
- IF RECNO() > m.toprec
- SHOW GET m.choice, 2 ENABLE
- SHOW GET m.choice, 1 ENABLE
- ENDIF
- ENDIF
- CASE m.choice = 4
- GO BOTTOM
- SHOW GET m.choice, 3 DISABLE
- SHOW GET m.choice, 2 ENABLE
- SHOW GET m.choice, 1 ENABLE
- SHOW GET m.choice, 4 DISABLE
- ENDCASE
- SHOW GETS
-
- * *********************************************************
- * *
- * * _QR10N5WGI m.lchoice VALID
- * *
- * * Function Origin:
- * *
- * * From Platform: Windows
- * * From Screen: CONTROL, Record Number: 3
- * * Variable: m.lchoice
- * * Called By: VALID Clause
- * * Object Type: Push Button
- * * Snippet Number: 2
- * *
- * *********************************************************
- *
- FUNCTION _qr10n5wgi && m.lchoice VALID
- #REGION 1
- DO SEARCHVAR2 IN SEARCH.PRG
-
-
- * *********************************************************
- * *
- * * _QR10N5WKI m.echoice VALID
- * *
- * * Function Origin:
- * *
- * * From Platform: Windows
- * * From Screen: CONTROL, Record Number: 4
- * * Variable: m.echoice
- * * Called By: VALID Clause
- * * Object Type: Push Button
- * * Snippet Number: 3
- * *
- * *********************************************************
- *
- FUNCTION _qr10n5wki && m.echoice VALID
- #REGION 1
- m.idlequit = .T.
- m.quitting = .T.
- CLEAR READ ALL
-